﻿using System;


namespace eShop.DataAccess.Entity
{
    public class Order
    {
        #region Constructor
        public Order()
        {
        }
        public Order(String orderNumber, DateTime orderDate, String orderStatus, Int32? userId, String userFullName, String userEmailAddress, String userPhoneNumber, String userInstruction, String shippingName, String shippingPhoneNumber, String shippingAddressLine1, String shippingAddressLine2, String shippingZip, String shippingCity, String shippingCountry, Double shippingCost, String shippingStatus, String paymentType, String paymentTrasectionId, String paymentStatus)
        {
            OrderNumber = orderNumber;
            OrderDate = orderDate;
            OrderStatus = orderStatus;
            UserId = userId;
            UserFullName = userFullName;
            UserEmailAddress = userEmailAddress;
            UserPhoneNumber = userPhoneNumber;
            UserInstruction = userInstruction;
            ShippingName = shippingName;
            ShippingPhoneNumber = shippingPhoneNumber;
            ShippingAddressLine1 = shippingAddressLine1;
            ShippingAddressLine2 = shippingAddressLine2;
            ShippingZip = shippingZip;
            ShippingCity = shippingCity;
            ShippingCountry = shippingCountry;
            ShippingCost = shippingCost;
            ShippingStatus = shippingStatus;
            PaymentType = paymentType;
            PaymentTrasectionId = paymentTrasectionId;
            PaymentStatus = paymentStatus;
        }
        #endregion


        #region private variables
        public Int32 Id { get; set; }
        public String OrderNumber { get; set; }
        public DateTime OrderDate { get; set; }
        public String OrderStatus { get; set; }
        public Int32? UserId { get; set; }
        public String UserFullName { get; set; }
        public String UserEmailAddress { get; set; }
        public String UserPhoneNumber { get; set; }
        public String UserInstruction { get; set; }
        public String ShippingName { get; set; }
        public String ShippingPhoneNumber { get; set; }
        public String ShippingAddressLine1 { get; set; }
        public String ShippingAddressLine2 { get; set; }
        public String ShippingZip { get; set; }
        public String ShippingCity { get; set; }
        public String ShippingCountry { get; set; }
        public Double SubTotal { get; set; }
        public Double OrderAmount { get; set; }
        public Double ShippingCost { get; set; }
        public String ShippingStatus { get; set; }
        public String PaymentType { get; set; }
        public String PaymentTrasectionId { get; set; }
        public String PaymentStatus { get; set; }
        #endregion
    }
}

